﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace TraceInspector.Model
{
    public class Launch : ModelBase
    {
        private String dataPath;

        public String DataPath
        {
            get { return dataPath; }
            set { dataPath = value; RaisePropertyChanged("DataPath"); }
        }

        private DateTime startDate;

        public DateTime StartDate
        {
            get { return startDate; }
            set { startDate = value; RaisePropertyChanged("StartDate"); }
        }

        private DateTime endDate;

        public DateTime EndDate
        {
            get { return endDate; }
            set { endDate = value; RaisePropertyChanged("EndDate"); }
        }

        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; RaisePropertyChanged("Id"); }
        }

        private ObservableCollection<Tube> tubes;

        public ObservableCollection<Tube> Tubes
        {
            get { return tubes; }
            set { tubes = value; RaisePropertyChanged("Tubes"); }
        }

        private Device launchDevice;

        public Device LaunchDevice
        {
            get { return launchDevice; }
            set { if (value != null) { launchDevice = value; RaisePropertyChanged("LaunchDevice"); } }
        }

        
    }
}
